﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.Repository.IRepository
{
    public interface IUnitOfWork
    {
        Task<(bool Success, string Message)> ExecuteTransactionAsync(Func<Task> action, string errorMessage = "事务执行失败");
        Task<(bool Success, T Result, string Message)> ExecuteTransactionAsync<T>(Func<Task<T>> action, string errorMessage = "事务执行失败");
    }
}
